﻿<controls:MetroContentControl x:Class="Wix.Win8SetupBootstrapper.Views.ProgressPageView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:controls="http://metro.mahapps.com/winfx/xaml/controls"
             xmlns:viewModels="clr-namespace:Wix.Win8SetupBootstrapper.ViewModels"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="450" d:DataContext="{d:DesignInstance viewModels:ProgressPageViewModel }">
    <controls:MetroContentControl.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/controls.textblock.xaml" />
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/controls.textbox.xaml" />
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/controls.listview.xaml" />

            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </controls:MetroContentControl.Resources>

    <DockPanel LastChildFill="True">
        <StackPanel DockPanel.Dock="Top" Margin="5,10,5,15" Orientation="Vertical">
            <StackPanel Orientation="Horizontal">
                <TextBlock Text="Downloading Package: "/>
                <TextBlock Text="{Binding PackageDownloadName}"/>
            </StackPanel>
            <controls:MetroProgressBar Height="20" Minimum="0" Maximum="100" Value="{Binding DownloadProgress}"/>
        </StackPanel>
        <StackPanel DockPanel.Dock="Top" Margin="5,15,5,10" Grid.Row="1" Orientation="Vertical">
            <StackPanel Orientation="Horizontal">
                <TextBlock Text="Installing Package: "/>
                <TextBlock Text="{Binding PackageInstallName}"/>
            </StackPanel>

            <controls:MetroProgressBar Height="20" Minimum="0" Maximum="100" Value="{Binding InstallProgress}"/>
        </StackPanel>
        <StackPanel DockPanel.Dock="Top" Margin="5,15,5,10" Grid.Row="2" Orientation="Vertical">
            <TextBlock Text="Overall Progress"/>

            <controls:MetroProgressBar Height="20" Minimum="0" Maximum="100" Value="{Binding Progress}"/>
        </StackPanel>
        <controls:ProgressRing IsActive="{Binding IsProcessing}" DockPanel.Dock="Top" />
    </DockPanel>

</controls:MetroContentControl>
